﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSFightAttribute extends IMessageBase
    {
        public var uid:String;
        public var updateCode:int;
        public var cellFight:SFightAttribute;
        public const _type:int = 3022;
        public static var _regist:SSFightAttribute = new SSFightAttribute(true);

        public function SSFightAttribute(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SSFightAttribute();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.uid);
            param1.writeShort(this.updateCode);
            this.cellFight.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.uid = param1.readString();
            this.updateCode = param1.readShort();
            this.cellFight = new SFightAttribute();
            this.cellFight.__read(param1);
            return;
        }// end function

    }
}
